﻿using GENERIC.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace GENERIC.EFRepository
{
    public abstract class IdEFBaseEntityTypeConfiguration<TEntityType> : EFBaseEntityTypeConfiguration<TEntityType> where TEntityType : IdModelBase
    {
        #region Constructor

        public IdEFBaseEntityTypeConfiguration(string schemaName)
            : base(schemaName)
        {
        }

        #endregion

        #region Methods

        protected override Expression<Func<TEntityType, object>> GetPrimaryKey()
        {
            return i => i.Id;
        }

        #endregion
    }
}
